﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.BaseLibrary.Domain;

namespace DepartmentWork.Migrator.Data
{
    public class MENU:IEntity
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        [DisplayName("菜单ID"), Required, Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int MENU_ID { get; set; }

        /// <summary>
        /// 父级菜单
        /// </summary>
        [DisplayName("父级菜单"), Required]
        public int BOOT_MENU_ID { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        [DisplayName("菜单名称"), Required]
        public string MENU_NAME{ get; set; }

        /// <summary>
        /// 菜单描述
        /// </summary>
        [DisplayName("菜单描述"), Required]
        public string MENU_CONTEXT { get; set; }

        /// <summary>
        /// 区域名称
        /// </summary>
        [DisplayName("区域名称")]
        public string AREA_NAME { get; set; }

        /// <summary>
        /// 控制器名
        /// </summary>
        [DisplayName("控制器名")]
        public string CONTROLLER_NAME { get; set; }

        /// <summary>
        /// 方法名
        /// </summary>
        [DisplayName("方法名")]
        public string ACTION_NAME { get; set; }

        /// <summary>
        /// 菜单状态
        /// </summary>
        [DisplayName("菜单状态"), Required]
        public int MENU_STATUS { get; set; }

        /// <summary>
        /// 菜单样式
        /// </summary>
        [DisplayName("菜单状态")]
        public string MENU_CLASS { get; set; }
    }
}
